package com.iqiyi.pps.epg.core.rpc.qipu;

import com.iqiyi.pps.epg.api.server.web.qipu.QipuWebService;
import com.iqiyi.pps.epg.core.rpc.qipu.impl.QipuManager;
import com.iqiyi.pps.epg.core.utils.ApplicationContextUtil;

import org.apache.thrift.TException;

/**
 * Created by zhangjing on 2017/4/11.
 */
public class QipuWebServiceImp implements QipuWebService.Iface {

    @Override
    public String getJsonEpisode(long qipuId) throws TException {
        QipuManager manager = (QipuManager) ApplicationContextUtil.getBean(QipuManager.class);
        return manager.getQipuEntityData(qipuId);
    }
}
